<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Java API Reference for Android: com.juphoon.cloud.JCCallCallback Interface Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Java API Reference for Android
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><b>juphoon</b></li><li class="navelem"><b>cloud</b></li><li class="navelem"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback.html">JCCallCallback</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.juphoon.cloud.JCCallCallback Interface Reference<div class="ingroups"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html">一对一通话模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af5561939aa3961e2a425151ba398f600"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback.html#af5561939aa3961e2a425151ba398f600">onCallItemAdd</a> (<a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> item)</td></tr>
<tr class="separator:af5561939aa3961e2a425151ba398f600"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a323ce4ac238fca2822d7f4bab9f8747e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback.html#a323ce4ac238fca2822d7f4bab9f8747e">onCallItemRemove</a> (<a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> item, @JCCall.CallReason int reason, String description)</td></tr>
<tr class="separator:a323ce4ac238fca2822d7f4bab9f8747e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e0fa5b37577616b1171eb07a151193d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback.html#a9e0fa5b37577616b1171eb07a151193d">onCallItemUpdate</a> (<a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> item, JCCallItem.ChangeParam changeParam)</td></tr>
<tr class="separator:a9e0fa5b37577616b1171eb07a151193d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0474d1a84a7306e491f2cb20ec586d4d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback.html#a0474d1a84a7306e491f2cb20ec586d4d">onMessageReceive</a> (String type, String content, <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> item)</td></tr>
<tr class="separator:a0474d1a84a7306e491f2cb20ec586d4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56e5445b186863088bd640be11976c80"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback.html#a56e5445b186863088bd640be11976c80">onMissedCallItem</a> (<a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> item)</td></tr>
<tr class="separator:a56e5445b186863088bd640be11976c80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37fbe0bc16344976fc394efc3d56c97e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback.html#a37fbe0bc16344976fc394efc3d56c97e">onDtmfReceived</a> (<a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> item, @JCCall.DtmfValue int value)</td></tr>
<tr class="separator:a37fbe0bc16344976fc394efc3d56c97e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_call_callback.html">JCCallCallback</a> 回调，用于回调一对一通话相关事件 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="af5561939aa3961e2a425151ba398f600"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5561939aa3961e2a425151ba398f600">&#9670;&nbsp;</a></span>onCallItemAdd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCCallCallback.onCallItemAdd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>新增通话回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a323ce4ac238fca2822d7f4bab9f8747e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a323ce4ac238fca2822d7f4bab9f8747e">&#9670;&nbsp;</a></span>onCallItemRemove()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCCallCallback.onCallItemRemove </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@JCCall.CallReason int&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>description</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>移除通话回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
    <tr><td class="paramname">reason</td><td>通话结束原因，参见：<a class="el" href="group__error.html#ga4258229e99ebe91531667d98e294ddbc">JCCall 错误码</a> </td></tr>
    <tr><td class="paramname">description</td><td>通话结束原因的描述，只有被动挂断的时候，才会收到这个值，其他情况下则返回空字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9e0fa5b37577616b1171eb07a151193d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e0fa5b37577616b1171eb07a151193d">&#9670;&nbsp;</a></span>onCallItemUpdate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCCallCallback.onCallItemUpdate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">JCCallItem.ChangeParam&#160;</td>
          <td class="paramname"><em>changeParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>通话状态更新回调</p>
<p>当上层收到此回调时，可以根据 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象获得该通话的所有信息及状态，从而更新该通话相关UI</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
    <tr><td class="paramname">changeParam</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item_1_1_change_param.html">JCCallItem.ChangeParam</a> 更新标识对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0474d1a84a7306e491f2cb20ec586d4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0474d1a84a7306e491f2cb20ec586d4d">&#9670;&nbsp;</a></span>onMessageReceive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCCallCallback.onMessageReceive </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>content</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>通话中收到消息的回调</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>消息类型，对应 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call.html#ac03e15ed27a4e81864fec517828d17d2">sendMessage</a> 方法中的 type 参数 </td></tr>
    <tr><td class="paramname">content</td><td>消息内容，对应 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call.html#ac03e15ed27a4e81864fec517828d17d2">sendMessage</a> 方法中的 content 参数 </td></tr>
    <tr><td class="paramname">item</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a56e5445b186863088bd640be11976c80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56e5445b186863088bd640be11976c80">&#9670;&nbsp;</a></span>onMissedCallItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCCallCallback.onMissedCallItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>拉取未接来电的回调</p>
<p>有以下几种情况会收到此回调：</p><ul>
<li>用户A未登录，用户B呼叫用户A，用户A登录后收到此回调</li>
<li>用户A已登录，但没开启应用，用户A在开启应用重新登录后会收到此回调</li>
<li>已存在语音通话又收到了视频通话来电，此时会收到此回调</li>
<li>已存在视频通话又收到了语音或视频来电，此时会收到此回调</li>
<li>当前通话数量已达到最大通话数时又收到了语音或视频来电，此时会收到此回调 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
  </table>
  </dd>
</dl>
</li>
</ul>

</div>
</div>
<a id="a37fbe0bc16344976fc394efc3d56c97e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37fbe0bc16344976fc394efc3d56c97e">&#9670;&nbsp;</a></span>onDtmfReceived()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCCallCallback.onDtmfReceived </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@JCCall.DtmfValue int&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>通话中收到DTMF回调</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
    <tr><td class="paramname">value</td><td><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_call.html#a3a3fe9aaf4921d295dc4116e9ae46e93">DTMF值</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this interface was generated from the following file:<ul>
<li>cloud/src/main/call/com/juphoon/cloud/JCCallCallback.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
